#include "material_height_manager.h"

Material_Height_Manager::Material_Height_Manager(QObject *parent)
    : QObject{parent}
{

}

bool Material_Height_Manager::isExistTable()
{
    MaterialHeightDataBase Db;

    QString sql = "SELECT ID, MaterialName,MaterialHeight FROM MaTerial_Height;";

    bool ok = Db.execSql(sql);
    if(!ok)
    {
        qDebug()<<"Cpp:不存在数据库表 MaTerial_Height";

        sql = "CREATE TABLE MaTerial_Height (ID INTEGER PRIMARY KEY ,MaterialName TEXT,MaterialHeight TEXT);";
        qDebug()<<"Cpp:创建数据表 MaTerial_Height sql:"<<sql;
        bool ok = Db.execSql(sql);
        if(ok)
        {
            qDebug()<<"Cpp:创建数据表 MaTerial_Height 成功";

            for(int i = 0 ; i < 40 ; i++)
            {
                addData();
            }
        }
        else
        {
            qDebug()<<"Cpp:创建数据表 MaTerial_Height 失败";
            return false;
        }
    }
    else
    {
        getAllDataFromSQL();
    }

    return true;
}

void Material_Height_Manager::getAllDataFromSQL()
{
    MaterialHeightDataBase Db;

    QSharedPointer<QSqlQuery> result;

    QString sql = "SELECT ID ,MaterialName,MaterialHeight FROM MaTerial_Height;";

    // QString name;
    // QString height;

    result.reset(Db.execSql_result(sql));
    if(!result.isNull())
    {
        while(result->next())
        {

            int id = result->value(0).toInt();

            switch(id)
            {
            case 1:
                setMaterialName_01(result->value(1).toString());
                setMaterialHeight_01(result->value(2).toString());
                break;
            case 2 :
                setMaterialName_02(result->value(1).toString());
                setMaterialHeight_02(result->value(2).toString());
                break;
            case 3:
                setMaterialName_03(result->value(1).toString());
                setMaterialHeight_03(result->value(2).toString());
                break;
            case 4:
                setMaterialName_04(result->value(1).toString());
                setMaterialHeight_04(result->value(2).toString());
                break;
            case 5:
                setMaterialName_05(result->value(1).toString());
                setMaterialHeight_05(result->value(2).toString());
                break;
            case 6:
                setMaterialName_06(result->value(1).toString());
                setMaterialHeight_06(result->value(2).toString());
                break;
            case 7:
                setMaterialName_07(result->value(1).toString());
                setMaterialHeight_07(result->value(2).toString());
                break;
            case 8:
                setMaterialName_08(result->value(1).toString());
                setMaterialHeight_08(result->value(2).toString());
                break;
            case 9:
                setMaterialName_09(result->value(1).toString());
                setMaterialHeight_09(result->value(2).toString());
                break;
            case 10:
                setMaterialName_10(result->value(1).toString());
                setMaterialHeight_10(result->value(2).toString());
                break;
            case 11:
                setMaterialName_11(result->value(1).toString());
                setMaterialHeight_11(result->value(2).toString());
                break;
            case 12:
                setMaterialName_12(result->value(1).toString());
                setMaterialHeight_12(result->value(2).toString());
                break;
            case 13:
                setMaterialName_13(result->value(1).toString());
                setMaterialHeight_13(result->value(2).toString());
                break;
            case 14:
                setMaterialName_14(result->value(1).toString());
                setMaterialHeight_14(result->value(2).toString());
                break;
            case 15:
                setMaterialName_15(result->value(1).toString());
                setMaterialHeight_15(result->value(2).toString());
                break;
            case 16:
                setMaterialName_16(result->value(1).toString());
                setMaterialHeight_16(result->value(2).toString());
                break;
            case 17:
                setMaterialName_17(result->value(1).toString());
                setMaterialHeight_17(result->value(2).toString());
                break;
            case 18:
                setMaterialName_18(result->value(1).toString());
                setMaterialHeight_18(result->value(2).toString());
                break;
            case 19:
                setMaterialName_19(result->value(1).toString());
                setMaterialHeight_19(result->value(2).toString());
                break;
            case 20:
                setMaterialName_20(result->value(1).toString());
                setMaterialHeight_20(result->value(2).toString());
                break;
            case 21:
                setMaterialName_21(result->value(1).toString());
                setMaterialHeight_21(result->value(2).toString());
                break;
            case 22:
                setMaterialName_22(result->value(1).toString());
                setMaterialHeight_22(result->value(2).toString());
                break;
            case 23:
                setMaterialName_23(result->value(1).toString());
                setMaterialHeight_23(result->value(2).toString());
                break;
            case 24:
                setMaterialName_24(result->value(1).toString());
                setMaterialHeight_24(result->value(2).toString());
                break;
            case 25:
                setMaterialName_25(result->value(1).toString());
                setMaterialHeight_25(result->value(2).toString());
                break;
            case 26:
                setMaterialName_26(result->value(1).toString());
                setMaterialHeight_26(result->value(2).toString());
                break;
            case 27:
                setMaterialName_27(result->value(1).toString());
                setMaterialHeight_27(result->value(2).toString());
                break;
            case 28:
                setMaterialName_28(result->value(1).toString());
                setMaterialHeight_28(result->value(2).toString());
                break;
            case 29:
                setMaterialName_29(result->value(1).toString());
                setMaterialHeight_29(result->value(2).toString());
                break;
            case 30:
                setMaterialName_30(result->value(1).toString());
                setMaterialHeight_30(result->value(2).toString());
                break;
            case 31:
                setMaterialName_31(result->value(1).toString());
                setMaterialHeight_31(result->value(2).toString());
                break;
            case 32:
                setMaterialName_32(result->value(1).toString());
                setMaterialHeight_32(result->value(2).toString());
                break;
            case 33:
                setMaterialName_33(result->value(1).toString());
                setMaterialHeight_33(result->value(2).toString());
                break;
            case 34:
                setMaterialName_34(result->value(1).toString());
                setMaterialHeight_34(result->value(2).toString());
                break;
            case 35:
                setMaterialName_35(result->value(1).toString());
                setMaterialHeight_35(result->value(2).toString());
                break;
            case 36:
                setMaterialName_36(result->value(1).toString());
                setMaterialHeight_36(result->value(2).toString());
                break;
            case 37:
                setMaterialName_37(result->value(1).toString());
                setMaterialHeight_37(result->value(2).toString());
                break;
            case 38:
                setMaterialName_38(result->value(1).toString());
                setMaterialHeight_38(result->value(2).toString());
                break;
            case 39:
                setMaterialName_39(result->value(1).toString());
                setMaterialHeight_39(result->value(2).toString());
                break;
            case 40:
                setMaterialName_40(result->value(1).toString());
                setMaterialHeight_40(result->value(2).toString());
                break;
            default:
                break;
            }

        }


        result.clear();
    }
}

void Material_Height_Manager::addData()
{
    MaterialHeightDataBase Db;

    QString sql = "INSERT INTO MaTerial_Height (MaterialName , MaterialHeight) VALUES('','')";

    qDebug()<<"Cpp:插入数据 sql:"<<sql;

    bool ok = Db.execSql(sql);
    if(!ok)
    {
        qDebug()<<"Cpp:添加数据失败";
    }
    else
    {
        qDebug()<<"Cpp:添加数据成功";
        getAllDataFromSQL();
    }
}

void Material_Height_Manager::saveData(int id, QString key, QString value)
{
    MaterialHeightDataBase Db;

    QString sql = "UPDATE MaTerial_Height SET " + key + "='"+ value +"' WHERE ID = "+QString::number(id);

    qDebug()<<"Cpp:更新数据 sql:"<<sql;

    bool ok = Db.execSql(sql);

    if(!ok)
    {
        qDebug()<<"Cpp:更新数据失败";
    }
    else
    {
        qDebug()<<"Cpp:更新数据成功";
    }
}

QString Material_Height_Manager::MaterialName_01() const
{
    return m_MaterialName_01;
}

void Material_Height_Manager::setMaterialName_01(const QString &newMaterialName_01)
{
    if (m_MaterialName_01 == newMaterialName_01)
        return;
    m_MaterialName_01 = newMaterialName_01;
    emit MaterialName_01Changed();
}

QString Material_Height_Manager::MaterialName_02() const
{
    return m_MaterialName_02;
}

void Material_Height_Manager::setMaterialName_02(const QString &newMaterialName_02)
{
    if (m_MaterialName_02 == newMaterialName_02)
        return;
    m_MaterialName_02 = newMaterialName_02;
    emit MaterialName_02Changed();
}

QString Material_Height_Manager::MaterialName_03() const
{
    return m_MaterialName_03;
}

void Material_Height_Manager::setMaterialName_03(const QString &newMaterialName_03)
{
    if (m_MaterialName_03 == newMaterialName_03)
        return;
    m_MaterialName_03 = newMaterialName_03;
    emit MaterialName_03Changed();
}

QString Material_Height_Manager::MaterialName_04() const
{
    return m_MaterialName_04;
}

void Material_Height_Manager::setMaterialName_04(const QString &newMaterialName_04)
{
    if (m_MaterialName_04 == newMaterialName_04)
        return;
    m_MaterialName_04 = newMaterialName_04;
    emit MaterialName_04Changed();
}

QString Material_Height_Manager::MaterialName_05() const
{
    return m_MaterialName_05;
}

void Material_Height_Manager::setMaterialName_05(const QString &newMaterialName_05)
{
    if (m_MaterialName_05 == newMaterialName_05)
        return;
    m_MaterialName_05 = newMaterialName_05;
    emit MaterialName_05Changed();
}

QString Material_Height_Manager::MaterialName_06() const
{
    return m_MaterialName_06;
}

void Material_Height_Manager::setMaterialName_06(const QString &newMaterialName_06)
{
    if (m_MaterialName_06 == newMaterialName_06)
        return;
    m_MaterialName_06 = newMaterialName_06;
    emit MaterialName_06Changed();
}

QString Material_Height_Manager::MaterialName_07() const
{
    return m_MaterialName_07;
}

void Material_Height_Manager::setMaterialName_07(const QString &newMaterialName_07)
{
    if (m_MaterialName_07 == newMaterialName_07)
        return;
    m_MaterialName_07 = newMaterialName_07;
    emit MaterialName_07Changed();
}

QString Material_Height_Manager::MaterialName_08() const
{
    return m_MaterialName_08;
}

void Material_Height_Manager::setMaterialName_08(const QString &newMaterialName_08)
{
    if (m_MaterialName_08 == newMaterialName_08)
        return;
    m_MaterialName_08 = newMaterialName_08;
    emit MaterialName_08Changed();
}

QString Material_Height_Manager::MaterialName_09() const
{
    return m_MaterialName_09;
}

void Material_Height_Manager::setMaterialName_09(const QString &newMaterialName_09)
{
    if (m_MaterialName_09 == newMaterialName_09)
        return;
    m_MaterialName_09 = newMaterialName_09;
    emit MaterialName_09Changed();
}

QString Material_Height_Manager::MaterialName_10() const
{
    return m_MaterialName_10;
}

void Material_Height_Manager::setMaterialName_10(const QString &newMaterialName_10)
{
    if (m_MaterialName_10 == newMaterialName_10)
        return;
    m_MaterialName_10 = newMaterialName_10;
    emit MaterialName_10Changed();
}

QString Material_Height_Manager::MaterialName_11() const
{
    return m_MaterialName_11;
}

void Material_Height_Manager::setMaterialName_11(const QString &newMaterialName_11)
{
    if (m_MaterialName_11 == newMaterialName_11)
        return;
    m_MaterialName_11 = newMaterialName_11;
    emit MaterialName_11Changed();
}

QString Material_Height_Manager::MaterialName_12() const
{
    return m_MaterialName_12;
}

void Material_Height_Manager::setMaterialName_12(const QString &newMaterialName_12)
{
    if (m_MaterialName_12 == newMaterialName_12)
        return;
    m_MaterialName_12 = newMaterialName_12;
    emit MaterialName_12Changed();
}

QString Material_Height_Manager::MaterialName_13() const
{
    return m_MaterialName_13;
}

void Material_Height_Manager::setMaterialName_13(const QString &newMaterialName_13)
{
    if (m_MaterialName_13 == newMaterialName_13)
        return;
    m_MaterialName_13 = newMaterialName_13;
    emit MaterialName_13Changed();
}

QString Material_Height_Manager::MaterialName_14() const
{
    return m_MaterialName_14;
}

void Material_Height_Manager::setMaterialName_14(const QString &newMaterialName_14)
{
    if (m_MaterialName_14 == newMaterialName_14)
        return;
    m_MaterialName_14 = newMaterialName_14;
    emit MaterialName_14Changed();
}

QString Material_Height_Manager::MaterialName_15() const
{
    return m_MaterialName_15;
}

void Material_Height_Manager::setMaterialName_15(const QString &newMaterialName_15)
{
    if (m_MaterialName_15 == newMaterialName_15)
        return;
    m_MaterialName_15 = newMaterialName_15;
    emit MaterialName_15Changed();
}

QString Material_Height_Manager::MaterialName_16() const
{
    return m_MaterialName_16;
}

void Material_Height_Manager::setMaterialName_16(const QString &newMaterialName_16)
{
    if (m_MaterialName_16 == newMaterialName_16)
        return;
    m_MaterialName_16 = newMaterialName_16;
    emit MaterialName_16Changed();
}

QString Material_Height_Manager::MaterialName_17() const
{
    return m_MaterialName_17;
}

void Material_Height_Manager::setMaterialName_17(const QString &newMaterialName_17)
{
    if (m_MaterialName_17 == newMaterialName_17)
        return;
    m_MaterialName_17 = newMaterialName_17;
    emit MaterialName_17Changed();
}

QString Material_Height_Manager::MaterialName_18() const
{
    return m_MaterialName_18;
}

void Material_Height_Manager::setMaterialName_18(const QString &newMaterialName_18)
{
    if (m_MaterialName_18 == newMaterialName_18)
        return;
    m_MaterialName_18 = newMaterialName_18;
    emit MaterialName_18Changed();
}

QString Material_Height_Manager::MaterialName_19() const
{
    return m_MaterialName_19;
}

void Material_Height_Manager::setMaterialName_19(const QString &newMaterialName_19)
{
    if (m_MaterialName_19 == newMaterialName_19)
        return;
    m_MaterialName_19 = newMaterialName_19;
    emit MaterialName_19Changed();
}

QString Material_Height_Manager::MaterialName_20() const
{
    return m_MaterialName_20;
}

void Material_Height_Manager::setMaterialName_20(const QString &newMaterialName_20)
{
    if (m_MaterialName_20 == newMaterialName_20)
        return;
    m_MaterialName_20 = newMaterialName_20;
    emit MaterialName_20Changed();
}

QString Material_Height_Manager::MaterialName_21() const
{
    return m_MaterialName_21;
}

void Material_Height_Manager::setMaterialName_21(const QString &newMaterialName_21)
{
    if (m_MaterialName_21 == newMaterialName_21)
        return;
    m_MaterialName_21 = newMaterialName_21;
    emit MaterialName_21Changed();
}

QString Material_Height_Manager::MaterialName_22() const
{
    return m_MaterialName_22;
}

void Material_Height_Manager::setMaterialName_22(const QString &newMaterialName_22)
{
    if (m_MaterialName_22 == newMaterialName_22)
        return;
    m_MaterialName_22 = newMaterialName_22;
    emit MaterialName_22Changed();
}

QString Material_Height_Manager::MaterialName_23() const
{
    return m_MaterialName_23;
}

void Material_Height_Manager::setMaterialName_23(const QString &newMaterialName_23)
{
    if (m_MaterialName_23 == newMaterialName_23)
        return;
    m_MaterialName_23 = newMaterialName_23;
    emit MaterialName_23Changed();
}

QString Material_Height_Manager::MaterialName_24() const
{
    return m_MaterialName_24;
}

void Material_Height_Manager::setMaterialName_24(const QString &newMaterialName_24)
{
    if (m_MaterialName_24 == newMaterialName_24)
        return;
    m_MaterialName_24 = newMaterialName_24;
    emit MaterialName_24Changed();
}

QString Material_Height_Manager::MaterialName_25() const
{
    return m_MaterialName_25;
}

void Material_Height_Manager::setMaterialName_25(const QString &newMaterialName_25)
{
    if (m_MaterialName_25 == newMaterialName_25)
        return;
    m_MaterialName_25 = newMaterialName_25;
    emit MaterialName_25Changed();
}

QString Material_Height_Manager::MaterialName_26() const
{
    return m_MaterialName_26;
}

void Material_Height_Manager::setMaterialName_26(const QString &newMaterialName_26)
{
    if (m_MaterialName_26 == newMaterialName_26)
        return;
    m_MaterialName_26 = newMaterialName_26;
    emit MaterialName_26Changed();
}

QString Material_Height_Manager::MaterialName_27() const
{
    return m_MaterialName_27;
}

void Material_Height_Manager::setMaterialName_27(const QString &newMaterialName_27)
{
    if (m_MaterialName_27 == newMaterialName_27)
        return;
    m_MaterialName_27 = newMaterialName_27;
    emit MaterialName_27Changed();
}

QString Material_Height_Manager::MaterialName_28() const
{
    return m_MaterialName_28;
}

void Material_Height_Manager::setMaterialName_28(const QString &newMaterialName_28)
{
    if (m_MaterialName_28 == newMaterialName_28)
        return;
    m_MaterialName_28 = newMaterialName_28;
    emit MaterialName_28Changed();
}

QString Material_Height_Manager::MaterialName_29() const
{
    return m_MaterialName_29;
}

void Material_Height_Manager::setMaterialName_29(const QString &newMaterialName_29)
{
    if (m_MaterialName_29 == newMaterialName_29)
        return;
    m_MaterialName_29 = newMaterialName_29;
    emit MaterialName_29Changed();
}

QString Material_Height_Manager::MaterialName_30() const
{
    return m_MaterialName_30;
}

void Material_Height_Manager::setMaterialName_30(const QString &newMaterialName_30)
{
    if (m_MaterialName_30 == newMaterialName_30)
        return;
    m_MaterialName_30 = newMaterialName_30;
    emit MaterialName_30Changed();
}

QString Material_Height_Manager::MaterialName_31() const
{
    return m_MaterialName_31;
}

void Material_Height_Manager::setMaterialName_31(const QString &newMaterialName_31)
{
    if (m_MaterialName_31 == newMaterialName_31)
        return;
    m_MaterialName_31 = newMaterialName_31;
    emit MaterialName_31Changed();
}

QString Material_Height_Manager::MaterialName_32() const
{
    return m_MaterialName_32;
}

void Material_Height_Manager::setMaterialName_32(const QString &newMaterialName_32)
{
    if (m_MaterialName_32 == newMaterialName_32)
        return;
    m_MaterialName_32 = newMaterialName_32;
    emit MaterialName_32Changed();
}

QString Material_Height_Manager::MaterialName_33() const
{
    return m_MaterialName_33;
}

void Material_Height_Manager::setMaterialName_33(const QString &newMaterialName_33)
{
    if (m_MaterialName_33 == newMaterialName_33)
        return;
    m_MaterialName_33 = newMaterialName_33;
    emit MaterialName_33Changed();
}

QString Material_Height_Manager::MaterialName_34() const
{
    return m_MaterialName_34;
}

void Material_Height_Manager::setMaterialName_34(const QString &newMaterialName_34)
{
    if (m_MaterialName_34 == newMaterialName_34)
        return;
    m_MaterialName_34 = newMaterialName_34;
    emit MaterialName_34Changed();
}

QString Material_Height_Manager::MaterialName_35() const
{
    return m_MaterialName_35;
}

void Material_Height_Manager::setMaterialName_35(const QString &newMaterialName_35)
{
    if (m_MaterialName_35 == newMaterialName_35)
        return;
    m_MaterialName_35 = newMaterialName_35;
    emit MaterialName_35Changed();
}

QString Material_Height_Manager::MaterialName_36() const
{
    return m_MaterialName_36;
}

void Material_Height_Manager::setMaterialName_36(const QString &newMaterialName_36)
{
    if (m_MaterialName_36 == newMaterialName_36)
        return;
    m_MaterialName_36 = newMaterialName_36;
    emit MaterialName_36Changed();
}

QString Material_Height_Manager::MaterialName_37() const
{
    return m_MaterialName_37;
}

void Material_Height_Manager::setMaterialName_37(const QString &newMaterialName_37)
{
    if (m_MaterialName_37 == newMaterialName_37)
        return;
    m_MaterialName_37 = newMaterialName_37;
    emit MaterialName_37Changed();
}

QString Material_Height_Manager::MaterialName_38() const
{
    return m_MaterialName_38;
}

void Material_Height_Manager::setMaterialName_38(const QString &newMaterialName_38)
{
    if (m_MaterialName_38 == newMaterialName_38)
        return;
    m_MaterialName_38 = newMaterialName_38;
    emit MaterialName_38Changed();
}

QString Material_Height_Manager::MaterialName_39() const
{
    return m_MaterialName_39;
}

void Material_Height_Manager::setMaterialName_39(const QString &newMaterialName_39)
{
    if (m_MaterialName_39 == newMaterialName_39)
        return;
    m_MaterialName_39 = newMaterialName_39;
    emit MaterialName_39Changed();
}

QString Material_Height_Manager::MaterialName_40() const
{
    return m_MaterialName_40;
}

void Material_Height_Manager::setMaterialName_40(const QString &newMaterialName_40)
{
    if (m_MaterialName_40 == newMaterialName_40)
        return;
    m_MaterialName_40 = newMaterialName_40;
    emit MaterialName_40Changed();
}

QString Material_Height_Manager::MaterialHeight_01() const
{
    return m_MaterialHeight_01;
}

void Material_Height_Manager::setMaterialHeight_01(const QString &newMaterialHeight_01)
{
    if (m_MaterialHeight_01 == newMaterialHeight_01)
        return;
    m_MaterialHeight_01 = newMaterialHeight_01;
    emit MaterialHeight_01Changed();
}

QString Material_Height_Manager::MaterialHeight_02() const
{
    return m_MaterialHeight_02;
}

void Material_Height_Manager::setMaterialHeight_02(const QString &newMaterialHeight_02)
{
    if (m_MaterialHeight_02 == newMaterialHeight_02)
        return;
    m_MaterialHeight_02 = newMaterialHeight_02;
    emit MaterialHeight_02Changed();
}

QString Material_Height_Manager::MaterialHeight_03() const
{
    return m_MaterialHeight_03;
}

void Material_Height_Manager::setMaterialHeight_03(const QString &newMaterialHeight_03)
{
    if (m_MaterialHeight_03 == newMaterialHeight_03)
        return;
    m_MaterialHeight_03 = newMaterialHeight_03;
    emit MaterialHeight_03Changed();
}

QString Material_Height_Manager::MaterialHeight_04() const
{
    return m_MaterialHeight_04;
}

void Material_Height_Manager::setMaterialHeight_04(const QString &newMaterialHeight_04)
{
    if (m_MaterialHeight_04 == newMaterialHeight_04)
        return;
    m_MaterialHeight_04 = newMaterialHeight_04;
    emit MaterialHeight_04Changed();
}

QString Material_Height_Manager::MaterialHeight_05() const
{
    return m_MaterialHeight_05;
}

void Material_Height_Manager::setMaterialHeight_05(const QString &newMaterialHeight_05)
{
    if (m_MaterialHeight_05 == newMaterialHeight_05)
        return;
    m_MaterialHeight_05 = newMaterialHeight_05;
    emit MaterialHeight_05Changed();
}

QString Material_Height_Manager::MaterialHeight_06() const
{
    return m_MaterialHeight_06;
}

void Material_Height_Manager::setMaterialHeight_06(const QString &newMaterialHeight_06)
{
    if (m_MaterialHeight_06 == newMaterialHeight_06)
        return;
    m_MaterialHeight_06 = newMaterialHeight_06;
    emit MaterialHeight_06Changed();
}

QString Material_Height_Manager::MaterialHeight_07() const
{
    return m_MaterialHeight_07;
}

void Material_Height_Manager::setMaterialHeight_07(const QString &newMaterialHeight_07)
{
    if (m_MaterialHeight_07 == newMaterialHeight_07)
        return;
    m_MaterialHeight_07 = newMaterialHeight_07;
    emit MaterialHeight_07Changed();
}

QString Material_Height_Manager::MaterialHeight_08() const
{
    return m_MaterialHeight_08;
}

void Material_Height_Manager::setMaterialHeight_08(const QString &newMaterialHeight_08)
{
    if (m_MaterialHeight_08 == newMaterialHeight_08)
        return;
    m_MaterialHeight_08 = newMaterialHeight_08;
    emit MaterialHeight_08Changed();
}

QString Material_Height_Manager::MaterialHeight_09() const
{
    return m_MaterialHeight_09;
}

void Material_Height_Manager::setMaterialHeight_09(const QString &newMaterialHeight_09)
{
    if (m_MaterialHeight_09 == newMaterialHeight_09)
        return;
    m_MaterialHeight_09 = newMaterialHeight_09;
    emit MaterialHeight_09Changed();
}

QString Material_Height_Manager::MaterialHeight_10() const
{
    return m_MaterialHeight_10;
}

void Material_Height_Manager::setMaterialHeight_10(const QString &newMaterialHeight_10)
{
    if (m_MaterialHeight_10 == newMaterialHeight_10)
        return;
    m_MaterialHeight_10 = newMaterialHeight_10;
    emit MaterialHeight_10Changed();
}

QString Material_Height_Manager::MaterialHeight_11() const
{
    return m_MaterialHeight_11;
}

void Material_Height_Manager::setMaterialHeight_11(const QString &newMaterialHeight_11)
{
    if (m_MaterialHeight_11 == newMaterialHeight_11)
        return;
    m_MaterialHeight_11 = newMaterialHeight_11;
    emit MaterialHeight_11Changed();
}

QString Material_Height_Manager::MaterialHeight_12() const
{
    return m_MaterialHeight_12;
}

void Material_Height_Manager::setMaterialHeight_12(const QString &newMaterialHeight_12)
{
    if (m_MaterialHeight_12 == newMaterialHeight_12)
        return;
    m_MaterialHeight_12 = newMaterialHeight_12;
    emit MaterialHeight_12Changed();
}

QString Material_Height_Manager::MaterialHeight_13() const
{
    return m_MaterialHeight_13;
}

void Material_Height_Manager::setMaterialHeight_13(const QString &newMaterialHeight_13)
{
    if (m_MaterialHeight_13 == newMaterialHeight_13)
        return;
    m_MaterialHeight_13 = newMaterialHeight_13;
    emit MaterialHeight_13Changed();
}

QString Material_Height_Manager::MaterialHeight_14() const
{
    return m_MaterialHeight_14;
}

void Material_Height_Manager::setMaterialHeight_14(const QString &newMaterialHeight_14)
{
    if (m_MaterialHeight_14 == newMaterialHeight_14)
        return;
    m_MaterialHeight_14 = newMaterialHeight_14;
    emit MaterialHeight_14Changed();
}

QString Material_Height_Manager::MaterialHeight_15() const
{
    return m_MaterialHeight_15;
}

void Material_Height_Manager::setMaterialHeight_15(const QString &newMaterialHeight_15)
{
    if (m_MaterialHeight_15 == newMaterialHeight_15)
        return;
    m_MaterialHeight_15 = newMaterialHeight_15;
    emit MaterialHeight_15Changed();
}

QString Material_Height_Manager::MaterialHeight_16() const
{
    return m_MaterialHeight_16;
}

void Material_Height_Manager::setMaterialHeight_16(const QString &newMaterialHeight_16)
{
    if (m_MaterialHeight_16 == newMaterialHeight_16)
        return;
    m_MaterialHeight_16 = newMaterialHeight_16;
    emit MaterialHeight_16Changed();
}

QString Material_Height_Manager::MaterialHeight_17() const
{
    return m_MaterialHeight_17;
}

void Material_Height_Manager::setMaterialHeight_17(const QString &newMaterialHeight_17)
{
    if (m_MaterialHeight_17 == newMaterialHeight_17)
        return;
    m_MaterialHeight_17 = newMaterialHeight_17;
    emit MaterialHeight_17Changed();
}

QString Material_Height_Manager::MaterialHeight_18() const
{
    return m_MaterialHeight_18;
}

void Material_Height_Manager::setMaterialHeight_18(const QString &newMaterialHeight_18)
{
    if (m_MaterialHeight_18 == newMaterialHeight_18)
        return;
    m_MaterialHeight_18 = newMaterialHeight_18;
    emit MaterialHeight_18Changed();
}

QString Material_Height_Manager::MaterialHeight_19() const
{
    return m_MaterialHeight_19;
}

void Material_Height_Manager::setMaterialHeight_19(const QString &newMaterialHeight_19)
{
    if (m_MaterialHeight_19 == newMaterialHeight_19)
        return;
    m_MaterialHeight_19 = newMaterialHeight_19;
    emit MaterialHeight_19Changed();
}

QString Material_Height_Manager::MaterialHeight_20() const
{
    return m_MaterialHeight_20;
}

void Material_Height_Manager::setMaterialHeight_20(const QString &newMaterialHeight_20)
{
    if (m_MaterialHeight_20 == newMaterialHeight_20)
        return;
    m_MaterialHeight_20 = newMaterialHeight_20;
    emit MaterialHeight_20Changed();
}

QString Material_Height_Manager::MaterialHeight_21() const
{
    return m_MaterialHeight_21;
}

void Material_Height_Manager::setMaterialHeight_21(const QString &newMaterialHeight_21)
{
    if (m_MaterialHeight_21 == newMaterialHeight_21)
        return;
    m_MaterialHeight_21 = newMaterialHeight_21;
    emit MaterialHeight_21Changed();
}

QString Material_Height_Manager::MaterialHeight_22() const
{
    return m_MaterialHeight_22;
}

void Material_Height_Manager::setMaterialHeight_22(const QString &newMaterialHeight_22)
{
    if (m_MaterialHeight_22 == newMaterialHeight_22)
        return;
    m_MaterialHeight_22 = newMaterialHeight_22;
    emit MaterialHeight_22Changed();
}

QString Material_Height_Manager::MaterialHeight_23() const
{
    return m_MaterialHeight_23;
}

void Material_Height_Manager::setMaterialHeight_23(const QString &newMaterialHeight_23)
{
    if (m_MaterialHeight_23 == newMaterialHeight_23)
        return;
    m_MaterialHeight_23 = newMaterialHeight_23;
    emit MaterialHeight_23Changed();
}

QString Material_Height_Manager::MaterialHeight_24() const
{
    return m_MaterialHeight_24;
}

void Material_Height_Manager::setMaterialHeight_24(const QString &newMaterialHeight_24)
{
    if (m_MaterialHeight_24 == newMaterialHeight_24)
        return;
    m_MaterialHeight_24 = newMaterialHeight_24;
    emit MaterialHeight_24Changed();
}

QString Material_Height_Manager::MaterialHeight_25() const
{
    return m_MaterialHeight_25;
}

void Material_Height_Manager::setMaterialHeight_25(const QString &newMaterialHeight_25)
{
    if (m_MaterialHeight_25 == newMaterialHeight_25)
        return;
    m_MaterialHeight_25 = newMaterialHeight_25;
    emit MaterialHeight_25Changed();
}

QString Material_Height_Manager::MaterialHeight_26() const
{
    return m_MaterialHeight_26;
}

void Material_Height_Manager::setMaterialHeight_26(const QString &newMaterialHeight_26)
{
    if (m_MaterialHeight_26 == newMaterialHeight_26)
        return;
    m_MaterialHeight_26 = newMaterialHeight_26;
    emit MaterialHeight_26Changed();
}

QString Material_Height_Manager::MaterialHeight_27() const
{
    return m_MaterialHeight_27;
}

void Material_Height_Manager::setMaterialHeight_27(const QString &newMaterialHeight_27)
{
    if (m_MaterialHeight_27 == newMaterialHeight_27)
        return;
    m_MaterialHeight_27 = newMaterialHeight_27;
    emit MaterialHeight_27Changed();
}

QString Material_Height_Manager::MaterialHeight_28() const
{
    return m_MaterialHeight_28;
}

void Material_Height_Manager::setMaterialHeight_28(const QString &newMaterialHeight_28)
{
    if (m_MaterialHeight_28 == newMaterialHeight_28)
        return;
    m_MaterialHeight_28 = newMaterialHeight_28;
    emit MaterialHeight_28Changed();
}

QString Material_Height_Manager::MaterialHeight_29() const
{
    return m_MaterialHeight_29;
}

void Material_Height_Manager::setMaterialHeight_29(const QString &newMaterialHeight_29)
{
    if (m_MaterialHeight_29 == newMaterialHeight_29)
        return;
    m_MaterialHeight_29 = newMaterialHeight_29;
    emit MaterialHeight_29Changed();
}


QString Material_Height_Manager::MaterialHeight_30() const
{
    return m_MaterialHeight_30;
}

void Material_Height_Manager::setMaterialHeight_30(const QString &newMaterialHeight_30)
{
    if (m_MaterialHeight_30 == newMaterialHeight_30)
        return;
    m_MaterialHeight_30 = newMaterialHeight_30;
    emit MaterialHeight_30Changed();
}

QString Material_Height_Manager::MaterialHeight_31() const
{
    return m_MaterialHeight_31;
}

void Material_Height_Manager::setMaterialHeight_31(const QString &newMaterialHeight_31)
{
    if (m_MaterialHeight_31 == newMaterialHeight_31)
        return;
    m_MaterialHeight_31 = newMaterialHeight_31;
    emit MaterialHeight_31Changed();
}

QString Material_Height_Manager::MaterialHeight_32() const
{
    return m_MaterialHeight_32;
}

void Material_Height_Manager::setMaterialHeight_32(const QString &newMaterialHeight_32)
{
    if (m_MaterialHeight_32 == newMaterialHeight_32)
        return;
    m_MaterialHeight_32 = newMaterialHeight_32;
    emit MaterialHeight_32Changed();
}

QString Material_Height_Manager::MaterialHeight_33() const
{
    return m_MaterialHeight_33;
}

void Material_Height_Manager::setMaterialHeight_33(const QString &newMaterialHeight_33)
{
    if (m_MaterialHeight_33 == newMaterialHeight_33)
        return;
    m_MaterialHeight_33 = newMaterialHeight_33;
    emit MaterialHeight_33Changed();
}

QString Material_Height_Manager::MaterialHeight_34() const
{
    return m_MaterialHeight_34;
}

void Material_Height_Manager::setMaterialHeight_34(const QString &newMaterialHeight_34)
{
    if (m_MaterialHeight_34 == newMaterialHeight_34)
        return;
    m_MaterialHeight_34 = newMaterialHeight_34;
    emit MaterialHeight_34Changed();
}

QString Material_Height_Manager::MaterialHeight_35() const
{
    return m_MaterialHeight_35;
}

void Material_Height_Manager::setMaterialHeight_35(const QString &newMaterialHeight_35)
{
    if (m_MaterialHeight_35 == newMaterialHeight_35)
        return;
    m_MaterialHeight_35 = newMaterialHeight_35;
    emit MaterialHeight_35Changed();
}

QString Material_Height_Manager::MaterialHeight_36() const
{
    return m_MaterialHeight_36;
}

void Material_Height_Manager::setMaterialHeight_36(const QString &newMaterialHeight_36)
{
    if (m_MaterialHeight_36 == newMaterialHeight_36)
        return;
    m_MaterialHeight_36 = newMaterialHeight_36;
    emit MaterialHeight_36Changed();
}

QString Material_Height_Manager::MaterialHeight_37() const
{
    return m_MaterialHeight_37;
}

void Material_Height_Manager::setMaterialHeight_37(const QString &newMaterialHeight_37)
{
    if (m_MaterialHeight_37 == newMaterialHeight_37)
        return;
    m_MaterialHeight_37 = newMaterialHeight_37;
    emit MaterialHeight_37Changed();
}

QString Material_Height_Manager::MaterialHeight_38() const
{
    return m_MaterialHeight_38;
}

void Material_Height_Manager::setMaterialHeight_38(const QString &newMaterialHeight_38)
{
    if (m_MaterialHeight_38 == newMaterialHeight_38)
        return;
    m_MaterialHeight_38 = newMaterialHeight_38;
    emit MaterialHeight_38Changed();
}

QString Material_Height_Manager::MaterialHeight_39() const
{
    return m_MaterialHeight_39;
}

void Material_Height_Manager::setMaterialHeight_39(const QString &newMaterialHeight_39)
{
    if (m_MaterialHeight_39 == newMaterialHeight_39)
        return;
    m_MaterialHeight_39 = newMaterialHeight_39;
    emit MaterialHeight_39Changed();
}

QString Material_Height_Manager::MaterialHeight_40() const
{
    return m_MaterialHeight_40;
}

void Material_Height_Manager::setMaterialHeight_40(const QString &newMaterialHeight_40)
{
    if (m_MaterialHeight_40 == newMaterialHeight_40)
        return;
    m_MaterialHeight_40 = newMaterialHeight_40;
    emit MaterialHeight_40Changed();
}
